package com.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "logs")
public class Logs  implements Serializable {

	@Column(name = "log_id")
	private Integer logId;

	@Column(name="user_name")
	private String userName;

	@Column(name="role_name")
	private String roleName;

	@Column(name = "log_work")
	private String logWork;

	@Column(name = "log_content")
	private String logContent;

	@DateTimeFormat(pattern = "yyyy-MM-dd")//指定时间格式
	@Column(name="oper_time")
	private Date operTime;

	@Column(name="user_id")
	private Integer userId;

	@Column(name="role_id")
	private Integer roleId;

	@Column(name="log_status")
	private Integer logStatus;

}
